<?php
session_start();
$code = $_SESSION['code'];
$postCode = trim($_POST['postCode']);
if($postCode == $code){
    echo '验证码输入正确';
}else{
    echo '验证码输入错误';
}